new Vue({
    el: '#vue-app',
    data: {
        name: '',
        age: ''
    },
    methods: {
        logName: function () {
            console.log('你正在输入你的名字');
            this.name = this.$refs.name.value;
        },
        logAge: function () {
            console.log('你正在输入你的年龄');
            this.age = this.$refs.age.value;
        }
    }
});